'use strict';
const cfg = global.cfg;
const path = require('path');
const gulp = require('gulp');
const del = require('del');
const gulpif = require('gulp-if');
const plumber = require('gulp-plumber');
/**
 * 清除dist目录
 * @return
 */
function gulpClean() {
  const patterns = path.resolve(cfg.path.cwd, 'dist')
  return del(patterns, { force: true })
}

module.exports = gulpClean;
